#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "ui_mainwindow.h"
#include "person.h"
#include "datamodel.h"

class MainWindow : public QMainWindow
{
    Q_OBJECT
    Ui::MainWindow *m_ui;
    DataModel * m_model;
    QModelIndex m_cur_index;
public:
    explicit MainWindow(QWidget * parent);
signals:
public slots:
    void save();    
    void updateData(QModelIndex index);
    void saveLocal(const QModelIndex & current, const QModelIndex & previous);
};

#endif // MAINWINDOW_H
